import useRequest from '@/utils/request'

const request = useRequest({})
export function listAd(params: any) {
  return request.get('/cj-stadium/sys/ad/getPage', {
    params
  })
}

export function createAd(data: any) {
  return request.post('/cj-stadium/sys/ad/create', data)
}

export function updateAd(data: any) {
  return request.post('/cj-stadium/sys/ad/update', data)
}

export function deleteAd(id: string) {
  return request.get(`/cj-stadium/sys/ad/delete/${id}`)
}